import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'home',
    component: () => import("../views/Home.vue"),
    // redirect:'/addf',
    children: [
      {
        path: '/addf',
        name: 'addf',
        component:() => import("../views/Addf.vue")
      },
      {
        path: '/delf',
        name: 'delf',
        component:() => import("../views/Delf.vue")
      },
      {
        path: '/modf',
        name: 'modf',
        component:() => import("../views/Modf.vue")
      }
    ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})


export default router